package pdamh.model.unidade.trecho.calc;

import pdamh.model.unidade.carga.calc.HardHFCalculator;
import junit.framework.TestCase;

public class HardHFCalculatorTest extends TestCase {
	
	public void testGetHeightFault() {
		HardHFCalculator calculator = new HardHFCalculator(13.2, 0.312, 144, 80.0, 10.0);
		assertEquals(1.52, calculator.getHeightFault(), 0.01);
		calculator = new HardHFCalculator(16.5, 0.37, 144, 100.0, 1);
		assertEquals(0.75, calculator.getHeightFault(), 0.01);
		calculator = new HardHFCalculator(16.5, 0.40, 144, 80.0, 0.23);
		assertEquals(0.68, calculator.getHeightFault(), 0.01);
	}

}
